package dimension.starry.block.typeInterface;

import dimension.starry.constants.ItemQuality;
import dimension.starry.item.typeInterface.ALLItemType;
import net.minecraft.block.BarrelBlock;
import net.minecraft.block.BlockRenderType;
import net.minecraft.block.BlockState;
import net.minecraft.block.MapColor;
import net.minecraft.block.entity.BarrelBlockEntity;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.enums.Instrument;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.math.BlockPos;

public abstract class LootChest extends BarrelBlock implements ALLItemType {

    public LootChest() {
        super(Settings.create()
            .mapColor(MapColor.OAK_TAN)
            .instrument(Instrument.BASS)
            .strength(2.5F)
            .nonOpaque()
            .sounds(BlockSoundGroup.WOOD)
            .burnable());
    }

    @Override
    public BlockRenderType getRenderType(BlockState state) {
        return BlockRenderType.MODEL;
    }

    @Override
    public BlockEntity createBlockEntity(BlockPos pos, BlockState state) {
        return new BarrelBlockEntity(pos, state);
    }

    @Override
    public ItemQuality getQuality() {
        return ItemQuality.EXCELLENT;
    }

}
